package com.qingcheng.dao;

import com.qingcheng.pojo.system.AdminAmongRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface AdminAmongRoleMapper extends Mapper<AdminAmongRole> {

    @Select("SELECT role_id " +
            "FROM tb_admin_role " +
            "WHERE admin_id=#{id}")
    public List<Integer> findRoleIdsByAdminId(@Param("id") int id);
}
